<include file="Public/min-header"/>
<link href="/Public/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="/Public/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="/Public/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>汇款记录</h3>
                </div>
                <div class="panel-body">
                    <div class="navbar navbar-default">
                        <form id="search-form2" class="navbar-form form-inline"  method="post" action="/index.php/Admin/Distribut/remittance">
                            <div class="form-group">
                                <label for="input-order-id" class="control-label">用户ID:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control" id="user_id" placeholder="用户id" value="1" name="user_id" />
                                </div>

                                <label for="input-order-id" class="control-label">收款账号:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control" id="input-order-id" placeholder="收款账号" value="" name="account_bank" />
                                </div>
                                <label for="input-order-id" class="control-label">收款账户名:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control" id="input-order-id" placeholder="收款账户名" value="" name="account_name" />
                                </div>

                                <div class="input-group margin">
                                    <div class="input-group-addon">
                                        时间<i class="fa fa-calendar"></i>
                                    </div>
                                    <input type="text" id="start_time" value="2015/08/04-2016/08/05" name="create_time" class="form-control pull-right">
                                </div>
                            </div>
                            <div class="form-group">
                                <button class="btn btn-primary" id="button-filter search-order" type="submit"><i class="fa fa-search"></i> 筛选</button>
                            </div>
                        </form>
                    </div>
                    <div id="ajax_return">
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th class="sorting text-left">ID</th>
                                    <th class="sorting text-left">用户id</th>
                                    <th class="sorting text-left">银行名称</th>
                                    <th class="sorting text-left">银行账号</th>
                                    <th class="sorting text-left">银行账户</th>
                                    <th class="sorting text-left">申请金额</th>
                                    <th class="sorting text-left">状态</th>
                                    <th class="sorting text-left">操作时间</th>
                                    <th class="sorting text-left">备注</th>
                                    <!--<th class="sorting text-left">申请提现记录</th>-->
                                </tr>
                                </thead>
                                <tbody>
                                <!--循环start-->
                                    <tr>
                                        <td class="text-left">
                                            <a href="/index.php/Admin/Distribut/editWithdrawals/id/1">1</a>
                                        </td>
                                        <td class="text-left">
                                            <a href="/index.php/Admin/user/detail/id/1">
                                                1                                        </a>
                                        </td>
                                        <td class="text-left">支付宝</td>
                                        <td class="text-left">5464646@qq.com</td>
                                        <td class="text-left">黄女士</td>
                                        <td class="text-left">100.00</td>
                                        <td class="text-left">支付成功</td>
                                        <td class="text-left">2016-06-20 18:53</td>
                                        <td class="text-left">测试通过</td>
                                        <!--<td class="text-left"><a href="/index.php/Admin/Distribut/editWithdrawals/id/1">查看</a></td>-->
                                    </tr>
                                <!--循环end-->
                                </tbody>
                            </table>
                        </div>

                        <div class="row">
                            <div class="col-sm-6 text-left"></div>
                            <div class="col-sm-6 text-right"><div class='dataTables_paginate paging_simple_numbers'><ul class='pagination'>    </ul></div></div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <!-- /.row -->

    </section>
</div>
<script>
    // 删除操作
    function del(id)
    {
        if(!confirm('确定要删除吗?'))
            return false;
        $.ajax({
            url:"/index.php?m=Admin&c=Distribut&a=delWithdrawals&id="+id,
            success: function(v){
                var v =  eval('('+v+')');
                if(v.hasOwnProperty('status') && (v.status == 1))
                    location.href='/index.php/Admin/Distribut/withdrawals';
                else
                    layer.msg(v.msg, {icon: 2,time: 1000}); //alert(v.msg);
            }
        });
        return false;
    }

    $(document).ready(function() {
        $('#start_time').daterangepicker({
            format:"YYYY/MM/DD",
            singleDatePicker: false,
            showDropdowns: true,
            minDate:'2016/01/01',
            maxDate:'2030/01/01',
            startDate:'2016/01/01',
            locale : {
                applyLabel : '确定',
                cancelLabel : '取消',
                fromLabel : '起始时间',
                toLabel : '结束时间',
                customRangeLabel : '自定义',
                daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
                monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月' ],
                firstDay : 1
            }
        });
    });

</script>

</body>
</html>